<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        span{
            font-size: 20px;
            color: pink;
            height: 200px;
            width: 500px;
            line-height: 200px;
            background-color: red;
            display: inline-block;
            font-weight: bolder;
            font-style: initial;
            text-decoration: line-through;
            text-indent: 2em;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <span>测试文本测试文本测试文本测试文本测试文本测试文本测试文本</span>
</body>
</html>